package com.jv.spring.init;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Test {
	private Test(){}
	public static void main(String[] args) {
		ApplicationContext ac = new AnnotationConfigApplicationContext(SpringAppConfig.class);
		Employee emp_aa = (Employee)ac.getBean("employee");
		System.out.println(emp_aa.getName());
	}
}
